package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SystemNotification;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemNotificationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemNotification entity);

    SystemNotification selectByPrimaryKey(Long id);

    List<SystemNotification> selectAll();

    int updateByPrimaryKey(SystemNotification systemNotification);

    List query(QueryObject qo);

    int getsystemNotificationNum(QueryObject qo);


    void updateType(@Param("userId") Long userId, @Param("type") int type);
}